//
//  GirlFriend.swift
//  NEW
//
//  Created by huanglei on 2017/9/18.
//  Copyright © 2017年 huanglei. All rights reserved.
//

import Foundation
public class GirlFriend:NSObject{
    
    
    
    private var _name: String
    private var _age: Int
    
    init (age: Int,name: String)
    {
        _name = name
        _age = age
    }
    
    public var age:Int{
        get{
            return _age
        }
        set {
            _age = newValue
        }
        
        
    }
    public var name:String{
        get{
            return _name
        }
        set{
            _name = newValue
        }
    }
    public func date()
    {
        print("约会:\(description),age\(_age)")
    }
    override public var description: String{
        get{
            return"name is:\(_name),age is:\(_age)"
        }
    }
    
}
